{{left_sidebar_enabled=right_sidebar_enabled=False}}
{{extend 'layout.html'}}
<script type="text/javascript">
$(document).ready(function(){
	// jQuery('a.get_reports').click(function(){
		// jQuery('div.reports,div#_reports').slideToggle();
	});
});
</script>
<div id="left_column">
	<div id="status">
		<h1>Current Status</h1>
		<h2>Organization:</h2>
			{{=session.organization['name']}}
		<p>
			<a class="button" href="{{=URL('default', 'session_organization_id_form')}}">Select a new organization</a>
		</p>
		<h2>Pledge Drive:</h2>
			{{=session.pledgedrive['title']}}
		<p>
			<a class="button" href="{{=URL('default', 'session_pledgedrive_id_form')}}">Select a new pledgedrive</a>
		</p>
		<h2>Segment:</h2>
			{{=session.segment['title']}}
		<p>
			<a class="button" href="{{=URL('default', 'session_segment_id_form')}}">Select a new segment</a>
		</p>
	</div>

	<div id="status">
		<!-- a class="button get_reports" href="#"></a -->
		<h1>Reports</h1>
		<div class="reports">
			<ul>
				<li>
					<a href="{{=URL(r=request,f='report_segments_by_pledgedrive',args=session.pledgedrive['id'])}}">Segment Report</a>
				</li>
				<li>
					<a href="{{=URL(r=request,f='report_single_segment',args=session.pledgedrive['id'])}}">Single Segment Report</a>
				</li>
				<li>
					<a href="{{=URL(r=request,f='report_pledge_level',args=session.pledgedrive['id'])}}">Pledge Levels Report</a>
				</li>
				<li>
					<a href="{{=URL(r=request,f='report_day_total_summary',args=session.pledgedrive['id'])}}">Day Totals Report</a>
				</li>
				<li>
					<a href="{{=URL(r=request,f='report_pledgedrive_totals_detailed',args=session.pledgedrive['id'])}}">Drive Totals (detailed)</a>
				</li>
				<li>
					<a href="{{=URL(r=request,f='report_pledgedrive_totals',args=session.pledgedrive['id'])}}">Drive Totals (summary)</a>
				</li>
				<li>
					<a class="button" href="{{=URL('default', 'report_progress_meter_flash')}}">Export XML for Flash Progress Meter</a>
				</li>
			</ul>
		</div>
	</div>

</div>

<div class="setup">
	<h1>Setup</h1>
  <h2>Organizations</h2>
	<ul>
		<li>
			<a href="{{=URL(r=request,f='list_organizations')}}">Manage Organizations</a>
		</li>
		<li>
			<a href="{{=URL(r=request,f='list_organizations',args=session.organization['id'])}}">View Currently Selected Organization</a>
		</li>
		<li>
			<a href="{{=URL(r=request,f='list_organizations',args=session.organization['id'])}}">Edit Selected Organization</a>
		</li>
  </ul>
  <h2>Programs</h2>
	<ul>
		<li>
			<a href="{{=URL(r=request,f='list_programs_by_organization',args=session.organization['id'])}}">List Programs</a>
		</li>
		<li>
			<a href="{{=URL(r=request,f='create_program',args=session.organization['id'])}}">Add a New Program</a>
		</li>
		<li>
			<a href="{{=URL(r=request,f='create_program_import',args=session.organization['id'])}}">Import Program List</a>
		</li>
  </ul>
  <h2>Pledge Drives</h2>
	<ul>
		<li>
			<a href="{{=URL(r=request,f='list_pledgedrives_by_organization',args=session.organization['id'])}}">List Pledge Drives</a>
		</li>
		<li>
			<a href="{{=URL(r=request,f='create_pledgedrive',args=session.organization['id'])}}">Add a New Pledge Drive</a> 
		</li>
		<li>
			<a href="{{=URL(r=request,f='view_pledgedrive',args=session.pledgedrive['id'])}}">View Currently Selected Pledge Drive</a>
		</li>
  </ul>
  <h2>People</h2>
	<ul>
		<li>
			<a href="{{=URL(r=request,f='list_persons_by_organization',args=session.organization['id'])}}">List Persons</a>
		</li>
		<li>
			<a href="{{=URL(r=request,f='create_person',args=session.organization['id'])}}">Add a New Person</a>
		</li>
  </ul>
  <h2>Challenges</h2>
	<ul>
		<li>
			<a href="{{=URL(r=request,f='list_challenges_by_pledgedrive',args=session.pledgedrive['id'])}}">List Challenges for Current Pledge Drive</a>
		</li>
		<li>
			<a href="{{=URL(r=request,f='create_challenge',args=session.pledgedrive['id'])}}">Add Challenge to Current Pledge Drive</a>
		</li>
  </ul>
  <h2>Segments</h2>
	<ul>
		<li>
			<a href="{{=URL(r=request,f='list_segments_by_pledgedrive',args=session.pledgedrive['id'])}}">List Segments for Current Pledge Drive</a>
    </li>
    <li>
      <a href="{{=URL(r=request,f='create_segment',args=session.pledgedrive['id'])}}">Add Segment to Current Pledge Drive</a> 
		</li>
  </ul>
  <h2>Pledges</h2>
	<ul>
		<li>
			<a href="{{=URL(r=request,f='list_pledges_by_pledgedrive',args=session.pledgedrive['id'])}}">List Pledges for Current Pledge Drive</a> 
		</li>
		<li>
			<a href="{{=URL(r=request,f='list_pledges_by_segment',args=session.segment['id'])}}">List Pledges for Current Segment</a>
		</li>
		<li>
			<a href="{{=URL(r=request,f='create_pledge',args=session.segment['id'])}}">Add Pledge to Current Segment</a>
		</li>
  </ul>
  <h2>Messages</h2>
	<ul>
		<li>
			<a href="{{=URL(r=request,f='post_list',args=session.organization['id'])}}">List Producer Messages</a> 
		</li>
		<li>
			<a href="{{=URL(r=request,f='delete_posts_by_organization',args=session.organization['id'])}}">Delete Producer Messages</a> 
		</li>
		<li>
			<a href="{{=URL(r=request,f='post_add',args=session.organization['id'])}}">Add Message</a>
		</li>
  </ul>
  <h2>Quick Setup</h2>
	<ul>
		<li>
			<a class="button" href="{{=URL('default', 'quick_setup_segment')}}">Quick Setup: Segments</a>
		</li>
		<li>
			<a class="button" href="{{=URL('default', 'quick_setup_pledgedrive')}}">Quick Setup: Duplicate Current Pledge Drive</a>
		</li>
	</ul>
</div>
